<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>test page</title>
    <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
</head>
<body>

    <h1> 用于测 试的页面</h1>

</body>

    <script>
        $.ajax({
            url:"/user/checkSession",
            type: "post",
            success: function(str){
                console.log(str);
                if(str==1){

                }else{
                    alert("用户未登录,返回登录界面!");
                    window.location = "login.html";
                }
            }

        });

    </script>
</html>